<?php
class Control_ImgCode extends QUI_Control_Abstract
{
    function render()
    {
        //$udi     = $this->get('udi', 'default/imgcode');
        $id      = h($this->id());
        $url     = h(url('default::default/imgcode', array('rand' => '_RAND_')));
        $out = "<input type=\"text\" ";
        $out .= $this->_printIdAndName();
        $out .= $this->_printAttrs('id, name');
		$out .= $this->_printDisabled();
		$out .= " />\n"; 
		//$out .= '<a href = "'.$url_get.'"><span id='.$id.'_span><img id='.$id.'_img src = '.$url.' border="0" style="cursor: pointer;" title="点击更换图像"/></span>';
		$out .= '<span id='.$id.'_span><img id='.$id.'_img src = '.$url.' border="0" style="cursor: pointer;" title="" /></span>';
        return $out;
    }
}